# -*- coding: utf-8 -*-
# @Author  : BoPo
# @Time    : 2022/1/4 11:31
# @Function:
import configparser
import sys

from loguru import logger

config = configparser.ConfigParser()
config.read("credentials.ini")

if config.get("API", "token") == "<THINGIVERSE_API_TOKEN>":
    logger.info("ERROR-YOU HAVE TO PUT YOUR THINGIVERSE API TOKEN AT: api_credentials.ini")
    sys.exit()
else:
    api_token = config.get("API", "token")
